package com.nkzy.mapper;

import com.nkzy.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Create by 王建烨 on 2022/3/21 9:28
 **/

public interface UserMapper {
    @Select("select * from user")
    List<User> findAll();

    @Select("select * from user where id=#{id}")
    User findById(Integer id);
}
